home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / tex / mf / inputs / dc / dxruwest.mf < prev    next >
Text File  |  1994-04-12  |  41KB  |  936 lines

  1. % This is DXRUWEST.MF in text format, as of March 24, 1992
  2. %
  3. % DC fonts Version 1.1 (prerelease of EC fonts)
  4. %
  5. %          [ heavily borrowed from the Computer Modern Roman family of
  6. %            fonts by D. E. Knuth ]
  7. %
  8. % Content:
  9. %
  10. %    uppercase accented letters ("western part")
  11. %
  12. %    oct"300" .. oct"337"
  13. %
  14. %
  15. %       oct"300"    A with gravis
  16. %       oct"301"    A with acute
  17. %       oct"302"    A with circumflex
  18. %       oct"303"    A with tilde
  19. %       oct"304"    A with umlaut
  20. %       oct"305"    A with scandinavian circle
  21. %       oct"306"    AE
  22. %       oct"307"    C with cedilla
  23. %
  24. %       oct"310"    E with gravis
  25. %       oct"311"    E with acute
  26. %       oct"312"    E with circumflex
  27. %       oct"313"    E with umlauts
  28. %       oct"314"    I with gravis
  29. %       oct"315"    I with acute
  30. %       oct"316"    I with circumflex
  31. %       oct"317"    I with umlaut
  32. %
  33. %       oct"320"    eth (island) D-
  34. %       oct"321"    N with tilde
  35. %       oct"322"    O with gravis
  36. %       oct"323"    O with acute
  37. %       oct"324"    O with circumflex
  38. %       oct"325"    O with tilde
  39. %       oct"326"    O with umlaut
  40. %       oct"327"    OE
  41. %
  42. %       oct"330"    O with  /
  43. %       oct"331"    U with gravis
  44. %       oct"332"    U with acute
  45. %       oct"333"    U with circumflex
  46.  
  47. %       oct"334"    U with umlaut
  48. %       oct"335"    Y with acute
  49. %       oct"336"    Thorn
  50. %       oct"337"    SS
  51. %
  52.  
  53.  
  54. dcchar "The letter gravis A";
  55. beginchar(oct"300",13u#,cap_height#+acc_height#,0);
  56. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  57. numeric left_stem,right_stem,outer_jut,alpha;
  58. right_stem=cap_stem-stem_corr;
  59. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  60. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  61. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  62. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  63. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  64. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  65. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  66. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  67.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  68.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  69.   ...{up}z0+.5left--cycle; % left and right diagonals
  70. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  71.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  72. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  73. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  74. if hefty: y5r else: y5 fi =5/12y0;
  75. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  76. if serifs: numeric inner_jut; pickup tiny.nib;
  77.  prime_points_inside(1,2); prime_points_inside(4,3);
  78.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  79.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  80.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  81.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  82. % the accent
  83. uppercase_gravis(0,0,12,13);
  84. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
  85.  
  86. dcchar "The letter acute A";
  87. beginchar(oct"301",13u#,cap_height#+acc_height#,0);
  88. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  89. numeric left_stem,right_stem,outer_jut,alpha;
  90. right_stem=cap_stem-stem_corr;
  91. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  92. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  93. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  94. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  95. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  96. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  97. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  98. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  99.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  100.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  101.   ...{up}z0+.5left--cycle; % left and right diagonals
  102. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  103.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  104. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  105. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  106. if hefty: y5r else: y5 fi =5/12y0;
  107. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  108. if serifs: numeric inner_jut; pickup tiny.nib;
  109.  prime_points_inside(1,2); prime_points_inside(4,3);
  110.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  111.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  112.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  113.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  114. % the accent
  115. uppercase_acute(0,0,7,8);
  116. penlabels(0,1,2,3,4,5,6,7,8); endchar;
  117.  
  118. dcchar "The letter circumflex A";
  119. beginchar(oct"302",13u#,cap_height#+acc_height#,0);
  120. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  121. numeric left_stem,right_stem,outer_jut,alpha;
  122. right_stem=cap_stem-stem_corr;
  123. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  124. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  125. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  126. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  127. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  128. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  129. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  130. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  131.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  132.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  133.   ...{up}z0+.5left--cycle; % left and right diagonals
  134. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  135.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  136. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  137. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  138. if hefty: y5r else: y5 fi =5/12y0;
  139. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  140. if serifs: numeric inner_jut; pickup tiny.nib;
  141.  prime_points_inside(1,2); prime_points_inside(4,3);
  142.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  143.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  144.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  145.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  146. % the accent
  147. uppercase_hat(x2,0,12,13,14,15,16);
  148. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
  149. endchar;
  150.  
  151.  
  152.  
  153. dcchar "The letter tilde (squiggle) A";
  154. beginchar(oct"303",13u#,cap_height#+acc_height#,0);
  155. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  156. numeric left_stem,right_stem,outer_jut,alpha;
  157. right_stem=cap_stem-stem_corr;
  158. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  159. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  160. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  161. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  162. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  163. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  164. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  165. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  166.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  167.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  168.   ...{up}z0+.5left--cycle; % left and right diagonals
  169. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  170.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  171. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  172. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  173. if hefty: y5r else: y5 fi =5/12y0;
  174. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  175. if serifs: numeric inner_jut; pickup tiny.nib;
  176.  prime_points_inside(1,2); prime_points_inside(4,3);
  177.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  178.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  179.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  180.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  181. % the accent
  182. uppercase_tilde(0,0,12,13,14,15,16);
  183. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
  184. endchar;
  185.  
  186. dcchar "The letter tilde N";
  187. beginchar(oct"321",13u#+width_adj#,cap_height#+acc_height#,0);
  188. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  189. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  190. numeric thin_stem; thin_stem=hround(fudged.hair+stem_corr);
  191. pickup tiny.nib; pos1(thin_stem,0); pos2(thin_stem,0);
  192. pos3(thin_stem,0); pos4(thin_stem,0);
  193. pickup tiny.nib; top y1=top y3=cap_height; bot y2=bot y4=0;
  194. x1=x2; x3=x4; x1l=w-x3r;
  195. rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem);
  196. filldraw stroke z1e--z2e; % left stem
  197. filldraw stroke z3e--z4e; % right stem
  198. if hefty: penpos5(fudged.cap_stem,0); penpos6(fudged.cap_stem,0);
  199.  x5l=x1; x6r=x4; y5=cap_height; y6=0;
  200.  numeric upper_notch,lower_notch;
  201.  upper_notch=cap_height-cap_notch_cut; lower_notch=cap_notch_cut;
  202.  x1'=rt x1r; z1'=whatever[z5l,z6l]; x4'=lft x4l; z4'=whatever[z5r,z6r];
  203.  fill z5l..
  204.   if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi
  205.   {z6-z5}diag_in(5l,6l,1,6r)--z6r..
  206.   if y4'>lower_notch: {left}(x4'-1,lower_notch){up}... fi
  207.   {z5-z6}diag_in(6r,5r,1,5l)--cycle;  % diagonal
  208. else: penpos5(whatever,0); penpos6(whatever,90);
  209.  z5l=z1l; z6l=z4l;
  210.  z7=z6l+(max(eps,cap_stem-3stem_corr-tiny),0) rotated (angle(z5l-z6l)-90);
  211.  z5r=z7+whatever*(z5l-z6l); z6r=z7+whatever*(z5l-z6l);
  212.  filldraw stroke z5e..z6e; fi  % diagonal
  213. if serifs: if hefty: serif(1,2,a,1/3,-cap_jut); % upper left serif
  214.  else: serif(5,6,a,1/3,-cap_jut); fi  % upper left serif
  215.  dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif
  216.  dish_serif(3,4,e,1/2,cap_jut,f,1/2,cap_jut)(dark); fi  % upper right serif
  217. % the accent
  218. uppercase_tilde(0,0,8,9,10,11,12);
  219. math_fit(0,max(.5ic#-.5u#,0)); penlabels(1,1',2,3,4,4',5,6,7,8,9,10,11,12,13);
  220. endchar;
  221.  
  222.  
  223. dcchar "The letter umlaut A";
  224. beginchar(oct"304",13u#,cap_height#+acc_height#,0);
  225. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  226. numeric left_stem,right_stem,outer_jut,alpha;
  227. right_stem=cap_stem-stem_corr;
  228. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  229. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  230. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  231. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  232. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  233. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  234. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  235. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  236.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  237.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  238.   ...{up}z0+.5left--cycle; % left and right diagonals
  239. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  240.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  241. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  242. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  243. if hefty: y5r else: y5 fi =5/12y0;
  244. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  245. if serifs: numeric inner_jut; pickup tiny.nib;
  246.  prime_points_inside(1,2); prime_points_inside(4,3);
  247.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  248.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  249.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  250.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  251. % the accent
  252. uppercase_umlaut(0,0,7,8,9,10);
  253. penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
  254.  
  255.  
  256. dcchar "The letter scandinavian circle A";
  257. beginchar(oct"305",13u#,cap_height#+.8acc_height#,0);
  258. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  259. numeric left_stem,right_stem,outer_jut,alpha;
  260. right_stem=cap_stem-stem_corr;
  261. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  262. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  263. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  264. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  265. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  266. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  267. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  268. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  269.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  270.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  271.   ...{up}z0+.5left--cycle; % left and right diagonals
  272. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  273.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  274. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  275. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  276. if hefty: y5r else: y5 fi =5/12y0;
  277. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  278. if serifs: numeric inner_jut; pickup tiny.nib;
  279.  prime_points_inside(1,2); prime_points_inside(4,3);
  280.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  281.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  282.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  283.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  284. % the accent
  285. uppercase_circle(x2,y2,12,13,14,15);
  286. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); endchar;
  287.  
  288.  
  289.  
  290. dcchar "The ligature AE";
  291. beginchar(oct"306",16u#,cap_height#,0);
  292. italcorr cap_height#*slant-beak_jut#-.5u#;
  293. adjust_fit(cap_serif_fit#,0);
  294. numeric left_stem,mid_stem,outer_jut,alpha;
  295. mid_stem=max(tiny.breadth,hround .9[mfudged.hair,mfudged.cap_stem]);
  296. pickup tiny.nib; pos1(mid_stem,0); pos2(mid_stem,0);
  297. lft x1l=lft x2l=hround(if monospace or hefty:.55 else:.5 fi\\w-.75u);
  298. top y1=h; bot y2=0;
  299. filldraw stroke z1e--z2e; % stem
  300. pickup crisp.nib; pos3(slab,90); pos4(mfudged.hair,0);
  301. top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
  302. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  303. pos5(cap_bar,-90); pos6(mfudged.hair,0); x5=x1;
  304. top y5l=vround(if hefty:.52 else:.48 fi\\[y2,y1]+.5cap_bar);
  305. pos0(cap_bar,90); pos7(mfudged.hair,0);
  306. z0=z5; x6=x7; y6-y5l=y0l-y7;
  307. if serifs and not(monospace and hefty): rt x6r=hround(w-3.65u+.5mfudged.hair);
  308.  y6=good.y(y5l+.6beak)+eps; rt x9r=hround(w-.5u);
  309. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  310. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  311. pos8(slab if not serifs:+2stem_corr fi,-90);
  312. pos9(mfudged.hair,0); bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
  313. arm(8,9,h,beak_darkness,1.5beak_jut);  % lower arm and beak
  314. left_stem=if monospace:fudged.hair else: cap_hair fi if hefty: -3stem_corr fi;
  315. outer_jut=.8cap_jut; x11l=l+letter_fit+outer_jut+.5u; y11=0;
  316. x12=x1l-apex_corr-if monospace:2 fi\\u; y12=h;
  317. alpha=diag_ratio(1,.5left_stem,y12-y11,x12-x11l);
  318. penpos11(alpha*left_stem,0); penpos12(alpha*left_stem,0);
  319. fill diag_end(12l,11l,1,1,11r,12r)
  320.  --diag_end(11r,12r,1,1,12l,11l)--cycle; % diagonal
  321. y10=h-slab; z10=whatever[z11,z12];
  322. fill z10--(x1,y10)--(x1,h)--z12--cycle;  % link
  323. penpos13(whatever,angle(z2-z1)); z13=whatever[z11,z12];
  324. penpos14(cap_band,90); x14=x0; y13l=y14l; y13r=y14r;
  325. if hefty: y14r=.4h; else: y14=y0; fi
  326. penstroke z13e--z14e; % bar line
  327. if serifs: numeric inner_jut; pickup tiny.nib;
  328.  prime_points_inside(11,12);
  329.  if rt x11'r+cap_jut+.5u+1<=lft x2l-.75cap_jut: inner_jut=cap_jut;
  330.  else: rt x11'r+inner_jut+.5u+1=lft x2l-.75inner_jut; fi
  331.  dish_serif(11',12,i,1/2,outer_jut,j,.6,inner_jut)(dark);  % lower left serif
  332.  nodish_serif(1,2,a,1/3,cap_jut+x1l-x12,b,1/3,.5cap_jut);  % upper serif
  333.  nodish_serif(2,1,c,1/3,.75inner_jut,d,1/3,.5cap_jut); fi  % lower middle serif
  334. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
  335.  
  336. dcchar "The letter cedilla C";
  337. if serifs: beginchar(oct"307",13u#,cap_height#,0.875desc_depth#);
  338.  italcorr cap_height#*slant-.5u#;
  339.  adjust_fit(0,0);
  340.  pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
  341.  pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
  342.  rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
  343.  top y2r=h+o; bot y4r=-o; y3=.5[y2,y4];
  344.  bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps);
  345.  y5=max(good.y .95(h-y1),y4l+eps);
  346.  (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
  347.  (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
  348.  filldraw stroke z1e{x2-x1,10(y2-y1)}
  349.   ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
  350.  pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o;
  351.  x1r-x1'=2cap_curve-fine; y1'=y1;
  352.  path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
  353.  numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
  354.  filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
  355. else: beginchar(oct"307",11.5u#,cap_height#,0.875desc_depth#);
  356.  italcorr cap_height#*slant-.5u#;
  357.  adjust_fit(0,0);
  358.  pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
  359.  pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
  360.  rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
  361.  lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u);
  362.  top y1r=vround .95h+o; top y2r=h+o; y3=.5h;
  363.  bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l;
  364.  filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
  365.   & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals
  366. % the accent
  367. uppercase_cedilla(x4,0,7,8,9,10,11);
  368. math_fit(-.3cap_height#*slant-.5u#,.5ic#);
  369. penlabels(1,1',2,3,4,5,6,7,8,9,10,11); endchar;
  370.  
  371.  
  372.  
  373. dcchar "The letter gravis E";
  374. beginchar(oct"310", 12u#-width_adj#,cap_height#+acc_height#,0);
  375. italcorr cap_height#*slant-beak_jut#-.5u#;
  376. adjust_fit(cap_serif_fit#,0);
  377. hh:=vround(cap_height-stem_corr);
  378. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  379. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=hh; bot y2=0;
  380. filldraw stroke z1e--z2e; % stem
  381. pickup crisp.nib; pos3(slab,90); pos4(hair,0);
  382. top y3r=hh; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
  383. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  384. pos5(cap_bar,-90); pos6(hair,0);
  385. top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
  386. pos0(cap_bar,90); pos7(hair,0);
  387. z0=z5; x6=x7; y6-y5l=y0l-y7;
  388. if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps;
  389.  rt x9r=hround(w-.5u);
  390. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  391. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  392. pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0);
  393. bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
  394. arm(8,9,hh,beak_darkness,1.5beak_jut);  % lower arm and beak
  395. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  396.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  397. math_fit(0,.5ic#);
  398. % the accent
  399. uppercase_gravis(0,0,10,11);
  400. penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;
  401.  
  402. dcchar "The letter acute E";
  403. beginchar(oct"311", 12u#-width_adj#,cap_height#+acc_height#,0);
  404. italcorr cap_height#*slant-beak_jut#-.5u#;
  405. adjust_fit(cap_serif_fit#,0);
  406. hh:=vround(cap_height-stem_corr);
  407. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  408. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=hh; bot y2=0;
  409. filldraw stroke z1e--z2e; % stem
  410. pickup crisp.nib; pos3(slab,90); pos4(hair,0);
  411. top y3r=hh; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
  412. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  413. pos5(cap_bar,-90); pos6(hair,0);
  414. top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
  415. pos0(cap_bar,90); pos7(hair,0);
  416. z0=z5; x6=x7; y6-y5l=y0l-y7;
  417. if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps;
  418.  rt x9r=hround(w-.5u);
  419. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  420. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  421. pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0);
  422. bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
  423. arm(8,9,hh,beak_darkness,1.5beak_jut);  % lower arm and beak
  424. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  425.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  426. uppercase_acute(0,0,10,11);
  427. math_fit(0,.5ic#);
  428. penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar;
  429.  
  430. dcchar "The letter circumflex (hat) E";
  431. beginchar(oct"312", 12u#-width_adj#,cap_height#+acc_height#,0);
  432. italcorr cap_height#*slant-beak_jut#-.5u#;
  433. adjust_fit(cap_serif_fit#,0);
  434. hh:=vround(cap_height-stem_corr);
  435. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  436. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=hh; bot y2=0;
  437. filldraw stroke z1e--z2e; % stem
  438. pickup crisp.nib; pos3(slab,90); pos4(hair,0);
  439. top y3r=hh; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
  440. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  441. pos5(cap_bar,-90); pos6(hair,0);
  442. top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
  443. pos0(cap_bar,90); pos7(hair,0);
  444. z0=z5; x6=x7; y6-y5l=y0l-y7;
  445. if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps;
  446.  rt x9r=hround(w-.5u);
  447. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  448. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  449. pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0);
  450. bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
  451. arm(8,9,hh,beak_darkness,1.5beak_jut);  % lower arm and beak
  452. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  453.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  454. math_fit(0,.5ic#);
  455. % the accent
  456. uppercase_hat(.5w,0,10,11,12,13,14);
  457. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
  458.  
  459.  
  460. dcchar "The letter umlaut E";
  461. beginchar(oct"313", 12u#-width_adj#,cap_height#+acc_height#,0);
  462. italcorr cap_height#*slant-beak_jut#-.5u#;
  463. adjust_fit(cap_serif_fit#,0);
  464. hh:=vround(cap_height-stem_corr);
  465. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  466. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=hh; bot y2=0;
  467. filldraw stroke z1e--z2e; % stem
  468. pickup crisp.nib; pos3(slab,90); pos4(hair,0);
  469. top y3r=hh; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
  470. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  471. pos5(cap_bar,-90); pos6(hair,0);
  472. top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
  473. pos0(cap_bar,90); pos7(hair,0);
  474. z0=z5; x6=x7; y6-y5l=y0l-y7;
  475. if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps;
  476.  rt x9r=hround(w-.5u);
  477. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  478. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  479. pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0);
  480. bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
  481. arm(8,9,hh,beak_darkness,1.5beak_jut);  % lower arm and beak
  482. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  483.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  484. % the accent
  485. uppercase_umlaut(0,0,10,11,12,13);
  486. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
  487.  
  488.  
  489. dcchar "The letter gravis I";
  490. beginchar(oct"314",max(6u#,4u#+cap_stem#),cap_height#+acc_height#,0);
  491. italcorr cap_height#*slant-.25u#;
  492. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  493. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  494. lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0;
  495. filldraw stroke z1e--z2e; % stem
  496. if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut);  % upper serif
  497.  dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut);  fi % lower serif
  498. math_fit(0,.5ic#);
  499. % the accent
  500. uppercase_gravis(0,0,5,6);
  501. penlabels(1,2,3,4,5,6); endchar;
  502.  
  503. dcchar "The letter acute I";
  504. beginchar(oct"315",max(6u#,4u#+cap_stem#),cap_height#+acc_height#,0);
  505. italcorr cap_height#*slant-.25u#;
  506. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  507. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  508. lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0;
  509. filldraw stroke z1e--z2e; % stem
  510. if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut);  % upper serif
  511.  dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut);  fi % lower serif
  512. % the accent
  513. uppercase_acute(0,0,3,4);
  514. math_fit(0,.5ic#);
  515. penlabels(1,2,3,4); endchar;
  516.  
  517. dcchar "The letter circumflex (hat) I";
  518. beginchar(oct"316",max(6u#,4u#+cap_stem#),cap_height#+acc_height#,0);
  519. italcorr cap_height#*slant-.25u#;
  520. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  521. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  522. lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0;
  523. filldraw stroke z1e--z2e; % stem
  524. if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut);  % upper serif
  525.  dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut);  fi % lower serif
  526. math_fit(0,.5ic#);
  527. % the accent
  528. uppercase_hat(x1,0,5,6,7,8,9);
  529. penlabels(1,2,3,4,5,6,7,8); endchar;
  530.  
  531. dcchar "The letter umlaut I";
  532. beginchar(oct"317",max(6u#,4u#+cap_stem#),cap_height#+acc_height#,0);
  533. italcorr cap_height#*slant-.25u#;
  534. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  535. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  536. lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0;
  537. filldraw stroke z1e--z2e; % stem
  538. if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut);  % upper serif
  539.  dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut);  fi % lower serif
  540. math_fit(0,.5ic#);
  541. % the accent
  542. uppercase_umlaut(0,0,5,6,7,8);
  543. penlabels(1,2,3,4,5,6,7,8); endchar;
  544.  
  545.  
  546.  
  547. dcchar "The letter (Eth) bar D";
  548. beginchar(oct"320",13.5u#,cap_height#,0);
  549. italcorr .7cap_height#*slant-.5u#;
  550. adjust_fit(cap_serif_fit#,0);
  551. pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
  552. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
  553. filldraw stroke z1e--z2e; % stem
  554. penpos3(cap_band,90); penpos4(cap_band,90);
  555. penpos5(cap_curve-stem_corr,0);
  556. penpos6(cap_band,-90); penpos7(cap_band,-90);
  557. z3r=top z1; y4=y3; y5=.51[y4,y6]; y6=y7;
  558. z7r=bot z2; x4=x6=.5w+.25u; x5r=hround(w-u);
  559. x4l:=x6l:=x4-.25cap_curve;
  560. fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e;  % lobe
  561. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  562.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  563. % the bar
  564. pickup tiny.nib;
  565. y8=y9=y5;
  566. pos8(bar,90); pos9(bar,90);
  567. x9=x4;
  568. if serifs:  x8=x2l-cap_jut; else: x8=.5u; fi;
  569. filldraw stroke z8e--z9e;
  570. math_fit(0,ic#-.5u#); penlabels(1,2,3,4,5,6,7,8,9); endchar;
  571.  
  572.  
  573.  
  574.  
  575. dcchar "The letter gravis O";
  576. beginchar(oct"322",14u#-width_adj#,cap_height#+acc_height#,0);
  577. italcorr .7cap_height#*slant-.5u#;
  578. adjust_fit(0,0);
  579. penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90);
  580. penpos2(cap_curve,180); penpos4(cap_curve,0);
  581. if monospace: x2r=hround 1.5u;
  582.  interim superness:=sqrt superness;  % make |"O"|, not |"0"|
  583. else: x2r=hround u; fi
  584. x4r=w-x2r; x1=x3=.5w; y1r=cap_height+o; y3r=-o;
  585. y2=y4=.5cap_height-vair_corr; y2l:=y4l:=.52cap_height;
  586. penstroke pulled_super_arc.e(1,2)(.5superpull)
  587.  & pulled_super_arc.e(2,3)(.5superpull)
  588.  & pulled_super_arc.e(3,4)(.5superpull)
  589.  & pulled_super_arc.e(4,1)(.5superpull) & cycle;  % bowl
  590. math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#);
  591. % the accent
  592. uppercase_gravis(0,0,5,6);
  593. penlabels(1,2,3,4,5,6); endchar;
  594.  
  595. dcchar "The letter acute O";
  596. beginchar(oct"323",14u#-width_adj#,cap_height#+acc_height#,0);
  597. italcorr .7cap_height#*slant-.5u#;
  598. adjust_fit(0,0);
  599. penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90);
  600. penpos2(cap_curve,180); penpos4(cap_curve,0);
  601. if monospace: x2r=hround 1.5u;
  602.  interim superness:=sqrt superness;  % make |"O"|, not |"0"|
  603. else: x2r=hround u; fi
  604. x4r=w-x2r; x1=x3=.5w; y1r=cap_height+o; y3r=-o;
  605. y2=y4=.5cap_height-vair_corr; y2l:=y4l:=.52cap_height;
  606. penstroke pulled_super_arc.e(1,2)(.5superpull)
  607.  & pulled_super_arc.e(2,3)(.5superpull)
  608.  & pulled_super_arc.e(3,4)(.5superpull)
  609.  & pulled_super_arc.e(4,1)(.5superpull) & cycle;  % bowl
  610. % the accent
  611. uppercase_acute(0,0,5,6);
  612. penlabels(1,2,3,4,5,6); endchar;
  613.  
  614. dcchar "The letter circumflex (hat) O";
  615. beginchar(oct"324",14u#-width_adj#,cap_height#+acc_height#,0);
  616. italcorr .7cap_height#*slant-.5u#;
  617. adjust_fit(0,0);
  618. penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90);
  619. penpos2(cap_curve,180); penpos4(cap_curve,0);
  620. if monospace: x2r=hround 1.5u;
  621.  interim superness:=sqrt superness;  % make |"O"|, not |"0"|
  622. else: x2r=hround u; fi
  623. x4r=w-x2r; x1=x3=.5w; y1r=cap_height+o; y3r=-o;
  624. y2=y4=.5cap_height-vair_corr; y2l:=y4l:=.52cap_height;
  625. penstroke pulled_super_arc.e(1,2)(.5superpull)
  626.  & pulled_super_arc.e(2,3)(.5superpull)
  627.  & pulled_super_arc.e(3,4)(.5superpull)
  628.  & pulled_super_arc.e(4,1)(.5superpull) & cycle;  % bowl
  629. math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#);
  630. % the accent
  631. uppercase_hat(x1,0,5,6,7,8,9);
  632. penlabels(1,2,3,4,5,6); endchar;
  633.  
  634. dcchar "The letter tilde O";
  635. beginchar(oct"325",14u#-width_adj#,cap_height#+acc_height#,0);
  636. italcorr .7cap_height#*slant-.5u#;
  637. adjust_fit(0,0);
  638. penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90);
  639. penpos2(cap_curve,180); penpos4(cap_curve,0);
  640. if monospace: x2r=hround 1.5u;
  641.  interim superness:=sqrt superness;  % make |"O"|, not |"0"|
  642. else: x2r=hround u; fi
  643. x4r=w-x2r; x1=x3=.5w; y1r=cap_height+o; y3r=-o;
  644. y2=y4=.5cap_height-vair_corr; y2l:=y4l:=.52cap_height;
  645. penstroke pulled_super_arc.e(1,2)(.5superpull)
  646.  & pulled_super_arc.e(2,3)(.5superpull)
  647.  & pulled_super_arc.e(3,4)(.5superpull)
  648.  & pulled_super_arc.e(4,1)(.5superpull) & cycle;  % bowl
  649. math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#);
  650. % the accent
  651. uppercase_tilde(0,0,7,8,9,10,11);
  652. penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar;
  653.  
  654.  
  655.  
  656. dcchar "The letter umlaut O";
  657. beginchar(oct"326",14u#-width_adj#,cap_height#+acc_height#,0);
  658. italcorr .7cap_height#*slant-.5u#;
  659. adjust_fit(0,0);
  660. penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90);
  661. penpos2(cap_curve,180); penpos4(cap_curve,0);
  662. if monospace: x2r=hround 1.5u;
  663.  interim superness:=sqrt superness;  % make |"O"|, not |"0"|
  664. else: x2r=hround u; fi
  665. x4r=w-x2r; x1=x3=.5w; y1r=cap_height+o; y3r=-o;
  666. y2=y4=.5cap_height-vair_corr; y2l:=y4l:=.52cap_height;
  667. penstroke pulled_super_arc.e(1,2)(.5superpull)
  668.  & pulled_super_arc.e(2,3)(.5superpull)
  669.  & pulled_super_arc.e(3,4)(.5superpull)
  670.  & pulled_super_arc.e(4,1)(.5superpull) & cycle;  % bowl
  671. math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#);
  672. % the accent
  673. uppercase_umlaut(0,0,5,6,7,8);
  674. penlabels(1,2,3,4,5,6,7,8); endchar;
  675.  
  676.  
  677. dcchar "The ligature OE";
  678. beginchar(oct"327",18u#,cap_height#,0);
  679. italcorr cap_height#*slant-beak_jut#-.5u#;
  680. adjust_fit(cap_serif_fit#,0);
  681. numeric light_stem;
  682. light_stem=max(tiny.breadth,hround .8[mfudged.hair,mfudged.cap_stem]);
  683. pickup tiny.nib; pos1(light_stem,0); pos2(light_stem,0);
  684. lft x1l=lft x2l=hround .5w; top y1=h; bot y2=0;
  685. filldraw stroke z1e--z2e; % stem
  686. pickup crisp.nib; pos3(slab,90); pos4(mfudged.hair,0);
  687. top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
  688. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  689. pos5(cap_bar,-90); pos6(mfudged.hair,0);
  690. top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
  691. pos0(cap_bar,90); pos7(mfudged.hair,0);
  692. z0=z5; x6=x7; y6-y5l=y0l-y7;
  693. if serifs and not(monospace and hefty): rt x6r=hround(w-3.4u+.5mfudged.hair);
  694.  y6=good.y(y5l+.6beak)+eps; rt x9r=hround(w-.5u);
  695. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  696. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  697. pos8(slab if not serifs:+2stem_corr fi,-90);
  698. pos9(mfudged.hair,0); bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
  699. arm(8,9,h,beak_darkness,1.5beak_jut);  % lower arm and beak
  700. penpos11(vair,90); penpos13(vair,-90);
  701. if monospace: penpos12(fudged.cap_stem,180);
  702.  interim superness:=sqrt superness;  % make |"O"|, not |"0"|
  703. else: penpos12(hround(cap_curve-stem_corr),180); fi
  704. x11=x13=.5w-2u; y11r=h+o; y13r=-o; y12=.5h-vair_corr; x12r=hround u;
  705. x14=x15=.5w; y14=2/3h; y15=1/3h; y12l:=.52h;
  706. penstroke super_arc.e(11,12) & super_arc.e(12,13);  % left half of bowl
  707. fill z13r{right}..{right}(x2,0)--(x1,h){left}..{left}z11r
  708.  --z11l{right}...{z14-z11l}(.82[x11l,x14],.82[y14,y11l])
  709.  ...z14---z15...{z13l-z15}(.82[x13l,x15],.82[y15,y13l])
  710.  ...{left}z13l--cycle;  % right half of bowl
  711. if serifs: serif(1,2,a,1/3,.5cap_jut);  % upper serif
  712.  serif(2,1,b,1/3,.5cap_jut); fi  % lower serif
  713. penlabels(0,1,2,3,4,5,6,7,8,9,11,12,13,14,15); endchar;
  714.  
  715.  
  716. dcchar "Scandinavian letter O/slash";
  717. beginchar(oct"330",14u#,cap_height#+.25desc_depth#,.25desc_depth#);
  718. italcorr .7cap_height#*slant-.5u#;
  719. adjust_fit(0,0);
  720. penpos1(vair,90); penpos3(vair,-90);
  721. penpos2(fudged.cap_stem,180); penpos4(fudged.cap_stem,0);
  722. if monospace: x2r=hround 1.5u;
  723.  interim superness:=sqrt superness;  % make |"O"| not |"0"|
  724. else: x2r=hround u; fi
  725. x4r=w-x2r; x1=x3=.5w;
  726. y1r=cap_height+o; y2=y4=.5cap_height-vair_corr; y3r=-o;
  727. penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
  728.  & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle;  % bowl
  729. x5=x4-vair; x6=x2+vair; y5=h; y6=-d;
  730. numeric theta; theta=angle(z5-z6)-90;
  731. pickup crisp.nib; pos5(vair',theta); pos6(vair',theta);
  732. filldraw stroke z5e--z6e;  % diagonal
  733. penlabels(1,2,3,4,5,6); endchar;
  734.  
  735.  
  736. dcchar "The letter gravis U";
  737. beginchar(oct"331",13u#+.5width_adj#,cap_height#+acc_height#,0);
  738. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  739. if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#)
  740. else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi;
  741. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  742. pos2'(cap_stem,180); z2'=z2;
  743. pos3(cap_band,-90);
  744. pos4(cap_hair,0); pos5(cap_hair,0);
  745. x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r;
  746. top y1=top y5=cap_height; y2=y4=1/3cap_height; bot y3r=-o;
  747. lft x1l=hround max(2u,3u-.5cap_stem);
  748. filldraw stroke z1e--z2e; % left stem
  749. filldraw stroke pulled_arc.e(2',3)
  750.  & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem
  751. if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif
  752.  dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi  % right serif
  753. math_fit(-cap_serif_fit#-.3cap_height#*slant-min(cap_height#*slant,u#),
  754.  max(.5ic#-.5u#,0));
  755. % the accent
  756. uppercase_gravis(0,0,8,9);
  757. penlabels(1,2,3,4,5,6,7,8,9); endchar;
  758.  
  759. dcchar "The letter acute U";
  760. beginchar(oct"332",13u#+.5width_adj#,cap_height#+acc_height#,0);
  761. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  762. if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#)
  763. else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi;
  764. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  765. pos2'(cap_stem,180); z2'=z2;
  766. pos3(cap_band,-90);
  767. pos4(cap_hair,0); pos5(cap_hair,0);
  768. x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r;
  769. top y1=top y5=cap_height; y2=y4=1/3cap_height; bot y3r=-o;
  770. lft x1l=hround max(2u,3u-.5cap_stem);
  771. filldraw stroke z1e--z2e; % left stem
  772. filldraw stroke pulled_arc.e(2',3)
  773.  & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem
  774. if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif
  775.  dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi  % right serif
  776. % the accent
  777. uppercase_acute(0,0,6,7);
  778. penlabels(1,2,3,4,5,6,7); endchar;
  779.  
  780.  
  781. dcchar "The letter circumflex (hat) U";
  782. beginchar(oct"333",13u#+.5width_adj#,cap_height#+acc_height#,0);
  783. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  784. if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#)
  785. else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi;
  786. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  787. pos2'(cap_stem,180); z2'=z2;
  788. pos3(cap_band,-90);
  789. pos4(cap_hair,0); pos5(cap_hair,0);
  790. x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r;
  791. top y1=top y5=cap_height; y2=y4=1/3cap_height; bot y3r=-o;
  792. lft x1l=hround max(2u,3u-.5cap_stem);
  793. filldraw stroke z1e--z2e; % left stem
  794. filldraw stroke pulled_arc.e(2',3)
  795.  & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem
  796. if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif
  797.  dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi  % right serif
  798. math_fit(-cap_serif_fit#-.3cap_height#*slant-min(cap_height#*slant,u#),
  799.  max(.5ic#-.5u#,0));
  800. % the accent
  801. uppercase_hat(x3,0,6,7,8,9,10);
  802. penlabels(1,2,3,4,5,6,7,6,7,8,9,10); endchar;
  803.  
  804.  
  805. dcchar "The letter umlaut U";
  806. beginchar(oct"334",13u#+.5width_adj#,cap_height#+acc_height#,0);
  807. italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
  808. if monospace: adjust_fit(cap_serif_fit#-.5u#,cap_serif_fit#-.5u#)
  809. else: adjust_fit(cap_serif_fit#,cap_serif_fit#) fi;
  810. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  811. pos2'(cap_stem,180); z2'=z2;
  812. pos3(cap_band,-90);
  813. pos4(cap_hair,0); pos5(cap_hair,0);
  814. x1=x2; x3=.5[x1,x5]; x4=x5; x1l=w-x5r;
  815. top y1=top y5=cap_height; y2=y4=1/3cap_height; bot y3r=-o;
  816. lft x1l=hround max(2u,3u-.5cap_stem);
  817. filldraw stroke z1e--z2e; % left stem
  818. filldraw stroke pulled_arc.e(2',3)
  819.  & pulled_arc.e(3,4)&z4e--z5e; % arc and right stem
  820. if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % left serif
  821.  dish_serif(5,4,c,1/2,cap_jut,d,1/2,cap_jut)(dark); fi  % right serif
  822. math_fit(-cap_serif_fit#-.3cap_height#*slant-min(cap_height#*slant,u#),
  823.  max(.5ic#-.5u#,0));
  824. % the accent
  825. uppercase_umlaut(0,0,6,7,8,9);
  826. penlabels(1,2,3,4,5,6,7,8,9); endchar;
  827.  
  828.  
  829. dcchar "The letter acute Y";
  830. beginchar(oct"335",13u#,cap_height#+acc_height#,0);
  831. italcorr cap_height#*slant+.45u#;
  832. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  833. numeric left_stem,right_stem,outer_jut,dy,alpha;
  834. left_stem=cap_stem-stem_corr;
  835. right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem);
  836. outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.05u;
  837. x2l=x5l=hround(.5w-.5left_stem); x3r=x5r;
  838. y1=y4=cap_height; y2=y3=y5=.4cap_height;
  839. dy=y1-y2; alpha=((x2l-x1l)++dy)/dy;
  840. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  841. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  842. penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0;
  843. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  844. if y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut;
  845.   fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r
  846.     --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  847.     ...{down}z0+.5left--cycle; % diagonals and stem
  848. else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r
  849.     --diag_end(5r,6r,1,1,6l,5l)--z5l
  850.     --diag_end(2l,1l,1,1,1r,0)--cycle; fi  % diagonals and stem
  851. if serifs: numeric inner_jut; pickup tiny.nib;
  852.  prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5);
  853.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  854.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  855.  dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut);  % upper left serif
  856.  dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark);  % upper right serif
  857.  dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi  % lower serif
  858. % the accent
  859. uppercase_acute(0,0,7,8);
  860. math_fit(.5u#-cap_height#*slant,ic#-4u#);
  861. penlabels(0,1,2,3,4,5,6,7,8); endchar;
  862.  
  863.  
  864. dcchar "The letter Thorn";
  865. beginchar(oct"336",11u#,cap_height#,0);
  866. italcorr .75cap_height#*slant-.5u#;
  867. adjust_fit(cap_serif_fit#,0);
  868. numeric left_stem,right_curve,middle_weight;
  869. left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5;
  870. pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0);
  871. lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0;
  872. filldraw stroke z1e--z2e; % stem
  873. penpos3(cap_band,90); penpos4(cap_band,90);
  874. penpos6(middle_weight,-90); penpos7(middle_weight,-90);
  875. penpos8(cap_band,90); penpos9(cap_band,90);
  876. penpos5(right_curve-stem_corr,0); penpos10(right_curve,0);
  877. penpos11(cap_band,-90); penpos12(cap_band,-90);
  878. z3r=top z1; y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair;
  879. x12=x1;
  880. y12r=0.26h; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52h+y12r;
  881. x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u;
  882. x5r=hround(w-1.5u); x10r=hround(w-u);
  883. if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-2.5u];
  884. else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u];
  885.  x4l:=x4l-.5u; x9l:=x9l-.5u; fi
  886. x6l:=x6l-.5u; x11l:=x11l-.5u;
  887. fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e;  % lower lobe
  888. if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut);  % upper serif
  889.  dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); fi  % lower serif
  890. math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar;
  891.  
  892.  
  893. dcchar "The letter SS";
  894. beginchar(oct"337",if monospace: 15u# else: 20u# fi ,cap_height#,0);
  895. italcorr cap_height#*slant-u#;
  896. normal_adjust_fit(0,0);
  897. w:=0.5w;
  898. numeric theta; theta=90-angle(50u,h); slope:=-h/50u;  % angle at middle
  899. numeric s_slab; s_slab=if serifs:slab else:vround .2[slab,cap_stem] fi;
  900. numeric ess'; ess'=max(fine.breadth,cap_ess);
  901. pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-90);
  902. pos0(ess',theta); pos7(s_slab,-90);
  903. x2+x7=2x0=w; x7-x2=if serifs: u else: 0 fi; top y2l=h+o; bot y7r=-o;
  904. y0=.52h; lft x3l=hround u; rt x6r=hround(w-u);
  905. x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
  906. ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
  907. ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
  908. filldraw stroke super_arc.e(2,3) & z3e{down}
  909.  ..z4e---z5e..z6e{down} & super_arc.e(6,7);  % main stroke
  910. if serifs: pos1(hair,180); pos8(hair,180);
  911.  rt x1l=hround(w-1.5u); lft x8r=hround u;
  912.  bot y1=vround 2/3h+1; top y8=vround 1/3h-1;
  913.  filldraw stroke z1e{x2-x1,10(y2-y1)}....{left}z2e;  % upper arc
  914.  filldraw stroke z7e{left}....{up}z8e;  % lower arc
  915.  path upper_arc, lower_arc;
  916.  upper_arc=z1{x2-x1,10(y2-y1)}....{left}z2;
  917.  lower_arc=z7{left}....{up}z8;
  918.  pos10(.3[fine.breadth,cap_hair],0); pos9(.3[fine.breadth,cap_hair],0);
  919.  x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
  920.  x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
  921.  numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
  922.  filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle;  % upper barb
  923.  t:=xpart(lower_arc intersectiontimes(z9r--z8'));
  924.  filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle;  % lower barb
  925. else: pos1(1.2flare,-100); pos8(1.2flare,-100);
  926.  x1l=good.x(x1l+w-1.75u-rt x1); lft x8r=hround .8u;
  927.  top y1l=vround .93h+o; bot y8r=vround .1h-o;
  928.  filldraw stroke term.e(2,1,right,.9,4);  % upper arc and terminal
  929.  filldraw stroke term.e(7,8,left,1,4); fi  % lower arc and terminal
  930. math_fit(0,.5ic#);
  931. w:=2w;
  932. currentpicture:=currentpicture+(currentpicture shifted (0.5w,0));
  933. penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10); endchar;
  934.  
  935. endinput;
  936.